/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.com.peluq.model.entity;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;

/**
 *
 * @author Diego_M
 */
@Embeddable
public class CtasTitularPK implements Serializable {
    @Basic(optional = false)
    @NotNull
    @Column(name = "idctas_titular", nullable = false)
    private int idctasTitular;
    @Basic(optional = false)
    @NotNull
    @Column(name = "idctas_corrientes", nullable = false)
    private int idctasCorrientes;

    public CtasTitularPK() {
    }

    public CtasTitularPK(int idctasTitular, int idctasCorrientes) {
        this.idctasTitular = idctasTitular;
        this.idctasCorrientes = idctasCorrientes;
    }

    public int getIdctasTitular() {
        return idctasTitular;
    }

    public void setIdctasTitular(int idctasTitular) {
        this.idctasTitular = idctasTitular;
    }

    public int getIdctasCorrientes() {
        return idctasCorrientes;
    }

    public void setIdctasCorrientes(int idctasCorrientes) {
        this.idctasCorrientes = idctasCorrientes;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idctasTitular;
        hash += (int) idctasCorrientes;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CtasTitularPK)) {
            return false;
        }
        CtasTitularPK other = (CtasTitularPK) object;
        if (this.idctasTitular != other.idctasTitular) {
            return false;
        }
        if (this.idctasCorrientes != other.idctasCorrientes) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "py.com.peluq.model.entity.CtasTitularPK[ idctasTitular=" + idctasTitular + ", idctasCorrientes=" + idctasCorrientes + " ]";
    }
    
}
